package com.example.demo.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;
//系统账户
public class LogTest {
    private Integer id;
    private String username;
    private String password;
    private String nickname;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime create_time;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime update_time;
    private Integer role;
    private Integer status;
    private String role_name;
    private String newpass;
    private String oldpass;


    public LogTest() {
    }

    public LogTest(Integer id, String username, String password, String nickname, LocalDateTime create_time, LocalDateTime update_time, Integer role, Integer status, String role_name, String newpass, String oldpass) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.create_time = create_time;
        this.update_time = update_time;
        this.role = role;
        this.status = status;
        this.role_name = role_name;
        this.newpass = newpass;
        this.oldpass = oldpass;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return nickname
     */
    public String getNickname() {
        return nickname;
    }

    /**
     * 设置
     * @param nickname
     */
    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    /**
     * 获取
     * @return create_time
     */
    public LocalDateTime getCreate_time() {
        return create_time;
    }

    /**
     * 设置
     * @param create_time
     */
    public void setCreate_time(LocalDateTime create_time) {
        this.create_time = create_time;
    }

    /**
     * 获取
     * @return update_time
     */
    public LocalDateTime getUpdate_time() {
        return update_time;
    }

    /**
     * 设置
     * @param update_time
     */
    public void setUpdate_time(LocalDateTime update_time) {
        this.update_time = update_time;
    }

    /**
     * 获取
     * @return role
     */
    public Integer getRole() {
        return role;
    }

    /**
     * 设置
     * @param role
     */
    public void setRole(Integer role) {
        this.role = role;
    }

    /**
     * 获取
     * @return status
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 获取
     * @return role_name
     */
    public String getRole_name() {
        return role_name;
    }

    /**
     * 设置
     * @param role_name
     */
    public void setRole_name(String role_name) {
        this.role_name = role_name;
    }

    /**
     * 获取
     * @return newpass
     */
    public String getNewpass() {
        return newpass;
    }

    /**
     * 设置
     * @param newpass
     */
    public void setNewpass(String newpass) {
        this.newpass = newpass;
    }

    /**
     * 获取
     * @return oldpass
     */
    public String getOldpass() {
        return oldpass;
    }

    /**
     * 设置
     * @param oldpass
     */
    public void setOldpass(String oldpass) {
        this.oldpass = oldpass;
    }

    public String toString() {
        return "LogTest{id = " + id + ", username = " + username + ", password = " + password + ", nickname = " + nickname + ", create_time = " + create_time + ", update_time = " + update_time + ", role = " + role + ", status = " + status + ", role_name = " + role_name + ", newpass = " + newpass + ", oldpass = " + oldpass + "}";
    }
}
